from django import forms
from django.contrib.auth.forms import AuthenticationForm, UsernameField


class CustomAuthenticationForm(AuthenticationForm):
    username = UsernameField(label='用户名|邮箱|手机号', widget=forms.TextInput(attrs={'autofocus': True}))
